package com.wyp.didishige.model;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobFile;
import cn.bmob.v3.datatype.BmobGeoPoint;
import cn.bmob.v3.datatype.BmobRelation;

/**
 * 动态
 * Created by horrywu on 15/10/8.
 */
public class Dynamic extends BmobObject {
    /**
     * 动态内容
     */
    private String content;
    /**
     * 动态图片
     */
    private BmobFile[] images;

    /**
     * 动态坐标
     */
    private BmobGeoPoint location;
    /**
     * 动态作者
     */
    private User author;

    private String authorId;

    /**
     * 评论数
     */
    private int commentNum;
    /**
     * 赞数
     */
    private int likeNum;
    /**
     * 阅读数
     */
    private int readNum;
    /**
     * 距离某一点的距离：米
     */
    private int meter;
    /**
     * 地点
     */
    private String address;
    /**
     * 喜欢的人：多对多关系
     */
    private BmobRelation likes;

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public BmobRelation getLikes() {
        return likes;
    }

    public void setLikes(BmobRelation likes) {
        this.likes = likes;
    }

    public int getReadNum() {
        return readNum;
    }

    public void setReadNum(int readNum) {
        this.readNum = readNum;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getMeter() {
        return meter;
    }

    public void setMeter(int meter) {
        this.meter = meter;
    }

    public int getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }

    public int getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(int likeNum) {
        this.likeNum = likeNum;
    }

    public User getAuthor() {
        return author;
    }

    public void setAuthor(User author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public BmobFile[] getImages() {
        return images;
    }

    public void setImages(BmobFile[] images) {
        this.images = images;
    }

    public BmobGeoPoint getLocation() {
        return location;
    }

    public void setLocation(BmobGeoPoint location) {
        this.location = location;
    }
}
